package com.android.equipment.dao;

import io.objectbox.annotation.Entity;
import io.objectbox.annotation.Id;
import io.objectbox.annotation.Transient;

@Entity
public class WorkDetail {
    @Id
    Long id;
    Long workId;
    String workName;
    Long peopleId;
    String peopleName;
    String peoplePhone;
    String peoplePhoto;
    Integer peopleCondition = 1;  // 1:正常 2:异常
    Long deviceId;
    String deviceName;
    String deviceCode;
    Long deviceModelId;
    String deviceDataChangeTime = "0000-00-00 00:00:00";
    String deviceNodeJson;

    @Transient
    boolean isHaveAlam = false;

    @Transient
    boolean isErrorAlam = false;  //是否是异常报警


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getWorkId() {
        return workId;
    }

    public void setWorkId(Long workId) {
        this.workId = workId;
    }

    public Long getPeopleId() {
        return peopleId;
    }

    public String getWorkName() {
        return workName;
    }

    public void setWorkName(String workName) {
        this.workName = workName;
    }

    public void setPeopleId(Long peopleId) {
        this.peopleId = peopleId;
    }

    public String getPeopleName() {
        return peopleName;
    }

    public void setPeopleName(String peopleName) {
        this.peopleName = peopleName;
    }

    public String getPeoplePhone() {
        return peoplePhone;
    }

    public void setPeoplePhone(String peoplePhone) {
        this.peoplePhone = peoplePhone;
    }

    public String getPeoplePhoto() {
        return peoplePhoto;
    }

    public void setPeoplePhoto(String peoplePhoto) {
        this.peoplePhoto = peoplePhoto;
    }

    public Integer getPeopleCondition() {
        return peopleCondition;
    }

    public void setPeopleCondition(Integer peopleCondition) {
        this.peopleCondition = peopleCondition;
    }

    public Long getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(Long deviceId) {
        this.deviceId = deviceId;
    }

    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    public String getDeviceCode() {
        return deviceCode;
    }

    public void setDeviceCode(String deviceCode) {
        this.deviceCode = deviceCode;
    }

    public Long getDeviceModelId() {
        return deviceModelId;
    }

    public void setDeviceModelId(Long deviceModelId) {
        this.deviceModelId = deviceModelId;
    }

    public String getDeviceDataChangeTime() {
        return deviceDataChangeTime;
    }

    public void setDeviceDataChangeTime(String deviceDataChangeTime) {
        this.deviceDataChangeTime = deviceDataChangeTime;
    }

    public String getDeviceNodeJson() {
        return deviceNodeJson;
    }

    public void setDeviceNodeJson(String deviceNodeJson) {
        this.deviceNodeJson = deviceNodeJson;
    }


    public boolean isHaveAlam() {
        return isHaveAlam;
    }

    public void setHaveAlam(boolean haveAlam) {
        isHaveAlam = haveAlam;
    }

    public boolean isErrorAlam() {
        return isErrorAlam;
    }

    public void setErrorAlam(boolean errorAlam) {
        isErrorAlam = errorAlam;
    }
}
